
import request from '@/utils/request'

//查询品牌列表
export function listBrand(query){
    return request({
        url: '/product/brand/list',
        method: 'get',
        params: query
    })
}

export function addBrand(data){
    return request({
        url: '/product/brand',
        method: 'post',
        data: data
    })
}

export function getBrand(id){
    return request({
        url: '/product/brand/' + id,
        method: 'get'
    })
}

export function updateBrand(data){
    return request({
        url: '/product/brand',
        method: 'put',
        data: data
    })
}

export function deleteBrand (id){
    return request({
        url: '/product/brand/' + id,
        method: 'delete'
    })
}

export function getAllBrand(){
    return request({
        url: '/product/brand/getBrandAllList',
        method: 'get'
    })
}